package com.lagou.session;

import com.lagou.pojo.Configuration;

/**
 * @ClassName: DefaultSqlSessionFactory
 * @Auther: Jerry
 * @Date: 2020/6/20 9:01
 * @Desctiption: TODO
 * @Version: 1.0
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory{

    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration){
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }
}
